home *** CD-ROM | disk | FTP | other *** search
-
-
-
- UUUUNNNNGGGGEEEETTTTCCCC((((3333SSSS)))) UUUUNNNNGGGGEEEETTTTCCCC((((3333SSSS))))
-
-
-
- NNNNAAAAMMMMEEEE
- ungetc - push character back into input stream
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ####iiiinnnncccclllluuuuddddeeee <<<<ssssttttddddiiiioooo....hhhh>>>>
-
- iiiinnnntttt uuuunnnnggggeeeettttcccc ((((iiiinnnntttt cccc,,,, FFFFIIIILLLLEEEE ****ssssttttrrrreeeeaaaammmm))));;;;
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- _u_n_g_e_t_c inserts the character _c into the buffer associated with an input
- _s_t_r_e_a_m. Pushed-back characters will be returned by subsequent reads on
- that stream in the reverse order of their pushing. A successful
- intervening call (with the stream pointed to by _s_t_r_e_a_m) to a file
- positioning function (_f_s_e_e_k(3S), _f_s_e_t_p_o_s(3S) or _r_e_w_i_n_d(3S)), discards any
- pushed-back characters. The external storage corresponding to the stream
- is unchanged. A successful call to _u_n_g_e_t_c clears the end-of-file
- indicator for the stream.
-
- One character of pushback is guaranteed, provided something has already
- been read from the stream and the stream is actually buffered.
-
- If _c equals EEEEOOOOFFFF, the operation fails and the input stream is unchanged.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- fseek(3S), fsetpos(3S), getc(3S), rewind(3S), setbuf(3S), stdio(3S).
-
- DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
- _u_n_g_e_t_c returns the character pushed back, or EEEEOOOOFFFF if it cannot insert the
- character.
-
- BBBBUUUUGGGGSSSS
- When _s_t_r_e_a_m is _s_t_d_i_n, one character may be pushed back onto the buffer
- without a previous read statement.
-
- An _u_n_g_e_t_c on an unbuffered stream (including _s_t_d_e_r_r) may succeed, with
- the following consequences. If the stream is open for input, the
- pushed-back character will be prepended to the input. If the stream is
- open only for output, the next character written to the output stream may
- be lost.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-